<?php
class Form_Category extends Zend_Form
{
	public function init()
	{
	//	echo 'in the cr';
		
		
	$this->setMethod('post');
	//create and configure username element
	$username = $this->createElement('text','cat_name',array('label'=>'Add Category'));
	$username->addValidator('alpha')
			/*->addValidator('regex',false,array(`/[a-z]+/`)) */
			 ->addValidator('stringLength',false,array(2,20))
			 ->setRequired(true)
			 ->addFilter('StringToUpper');
			 
	//create and configure password element
	
			 
	//Add elements to the form
	$this->addElement($username)
	
		 ->addElement('submit','Add',array('label'=>'Add Category'));
	
	
		
	}
}
?>